package com.study.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.study.springcloud.entites.CommonResult;
import com.study.springcloud.entites.Payment;

/**
 * @author xujm
 * @version V2.4
 * @since 2.4.0 2021/3/14 16:40
 */
@Component
@FeignClient(value = "cloud-provider-payment")
public interface PaymentService {

    @GetMapping(value = "/payment/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") String id);
}
